<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: LPI2C Master Driver</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__lpi2c__master__driver.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">LPI2C Master Driver<div class="ingroups"><a class="el" href="group__lpi2c__driver.html">LPI2C Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for LPI2C Master Driver:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="group__lpi2c__master__driver.svg" width="290" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structlpi2c__master__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t">lpi2c_master_config_t</a></td></tr>
<tr class="memdesc:structlpi2c__master__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">Structure with settings to initialize the LPI2C master module.  <a href="group__lpi2c__master__driver.html#structlpi2c__master__config__t">More...</a><br /></td></tr>
<tr class="separator:structlpi2c__master__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structlpi2c__master__config__t_8host_request"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t_8host_request">lpi2c_master_config_t.hostRequest</a></td></tr>
<tr class="separator:structlpi2c__master__config__t_8host_request"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structlpi2c__data__match__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#structlpi2c__data__match__config__t">lpi2c_data_match_config_t</a></td></tr>
<tr class="memdesc:structlpi2c__data__match__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C master data match config struct.  <a href="group__lpi2c__master__driver.html#structlpi2c__data__match__config__t">More...</a><br /></td></tr>
<tr class="separator:structlpi2c__data__match__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:struct__lpi2c__master__transfer"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#struct__lpi2c__master__transfer">lpi2c_master_transfer_t</a></td></tr>
<tr class="memdesc:struct__lpi2c__master__transfer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-blocking transfer descriptor structure.  <a href="group__lpi2c__master__driver.html#struct__lpi2c__master__transfer">More...</a><br /></td></tr>
<tr class="separator:struct__lpi2c__master__transfer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:struct__lpi2c__master__handle"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#struct__lpi2c__master__handle">lpi2c_master_handle_t</a></td></tr>
<tr class="memdesc:struct__lpi2c__master__handle"><td class="mdescLeft">&#160;</td><td class="mdescRight">Driver handle for master non-blocking APIs.  <a href="group__lpi2c__master__driver.html#struct__lpi2c__master__handle">More...</a><br /></td></tr>
<tr class="separator:struct__lpi2c__master__handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gac848c547c21a9929224af938c57bdc2e"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gac848c547c21a9929224af938c57bdc2e">lpi2c_master_transfer_callback_t</a>) (LPI2C_Type *base, lpi2c_master_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> completionStatus, void *userData)</td></tr>
<tr class="memdesc:gac848c547c21a9929224af938c57bdc2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Master completion callback function pointer type.  <a href="#gac848c547c21a9929224af938c57bdc2e">More...</a><br /></td></tr>
<tr class="separator:gac848c547c21a9929224af938c57bdc2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga830bba7ea584a7f98d3fb6afd946d739"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739">_lpi2c_master_flags</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739af3208f156244a4b1c520db35b147ee33">kLPI2C_MasterTxReadyFlag</a> = LPI2C_MSR_TDF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739ae09650509ffef3de4ede348c4ac66be5">kLPI2C_MasterRxReadyFlag</a> = LPI2C_MSR_RDF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739adf431b1a9475437d7089df5abcea7122">kLPI2C_MasterEndOfPacketFlag</a> = LPI2C_MSR_EPF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aad8d90df6216a4d27680fd530c42710d">kLPI2C_MasterStopDetectFlag</a> = LPI2C_MSR_SDF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a3ea7b4560b395c82e5293678228fff81">kLPI2C_MasterNackDetectFlag</a> = LPI2C_MSR_NDF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a9e012e945342b8f0333e59060affb0b1">kLPI2C_MasterArbitrationLostFlag</a> = LPI2C_MSR_ALF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aac4e2ec9c92ea22b5246bb62000f93a9">kLPI2C_MasterFifoErrFlag</a> = LPI2C_MSR_FEF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a37ceb9a9bdaa1ec7261d7265a51a5f17">kLPI2C_MasterPinLowTimeoutFlag</a> = LPI2C_MSR_PLTF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aaaad4c02a63dcf7d021baa5c4a9dcf2e">kLPI2C_MasterDataMatchFlag</a> = LPI2C_MSR_DMF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739ac1de9e29d8ffe76b10b8425f81db1368">kLPI2C_MasterBusyFlag</a> = LPI2C_MSR_MBF_MASK, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a408ed7773539a17625803f6c9d3a6629">kLPI2C_MasterBusBusyFlag</a> = LPI2C_MSR_BBF_MASK
<br />
 }<tr class="memdesc:ga830bba7ea584a7f98d3fb6afd946d739"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C master peripheral flags.  <a href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga830bba7ea584a7f98d3fb6afd946d739"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf7540e799ad5eb17c678b39ea1ace80c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca4a913c200cf54c773380ea8271e7b42b">kLPI2C_Write</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca50ba3a53d79baed347bb8fa07d7884ab">kLPI2C_Read</a> = 1U
<br />
 }<tr class="memdesc:gaf7540e799ad5eb17c678b39ea1ace80c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Direction of master and slave transfers.  <a href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaf7540e799ad5eb17c678b39ea1ace80c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga07db39ec1d066e1427d7e58a52c7ea12"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga07db39ec1d066e1427d7e58a52c7ea12">lpi2c_master_pin_config_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12ada174b660785782567aee14c05918d89">kLPI2C_2PinOpenDrain</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12a9a8053876d619b3beeb745b212b9a1fb">kLPI2C_2PinOutputOnly</a> = 0x1U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12a53f8d0708cfc2ea887abb2e2d440d29e">kLPI2C_2PinPushPull</a> = 0x2U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12a9642890d09eeb5ed0b8d9e59aac6e3b7">kLPI2C_4PinPushPull</a> = 0x3U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12ad809117a74ffea333e273e97dc93aff7">kLPI2C_2PinOpenDrainWithSeparateSlave</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12a297f630d584519da05064b2962596ee5">kLPI2C_2PinOutputOnlyWithSeparateSlave</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12a5e8d93f3f8f55f5c9a47c7cddd4df495">kLPI2C_2PinPushPullWithSeparateSlave</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga07db39ec1d066e1427d7e58a52c7ea12acb4290916ade8b65741bc18d632acbd6">kLPI2C_4PinPushPullWithInvertedOutput</a> = 0x7U
<br />
 }<tr class="memdesc:ga07db39ec1d066e1427d7e58a52c7ea12"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C pin configuration.  <a href="group__lpi2c__master__driver.html#ga07db39ec1d066e1427d7e58a52c7ea12">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga07db39ec1d066e1427d7e58a52c7ea12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac9a07c4c7370019ccabc914bd26ea1c8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gac9a07c4c7370019ccabc914bd26ea1c8">lpi2c_host_request_source_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#ggac9a07c4c7370019ccabc914bd26ea1c8a4634268e7c377ffd2e7db9a93b2776eb">kLPI2C_HostRequestExternalPin</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#ggac9a07c4c7370019ccabc914bd26ea1c8a1a8773fbec157bc1a069826af08a2aae">kLPI2C_HostRequestInputTrigger</a> = 0x1U
<br />
 }<tr class="memdesc:gac9a07c4c7370019ccabc914bd26ea1c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C master host request selection.  <a href="group__lpi2c__master__driver.html#gac9a07c4c7370019ccabc914bd26ea1c8">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gac9a07c4c7370019ccabc914bd26ea1c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78edbfb2d1e9213e7ebfabe32423f5d2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga78edbfb2d1e9213e7ebfabe32423f5d2">lpi2c_host_request_polarity_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga78edbfb2d1e9213e7ebfabe32423f5d2aab540d2690ea7446d68f0106e46cfb36">kLPI2C_HostRequestPinActiveLow</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga78edbfb2d1e9213e7ebfabe32423f5d2a1f72f10b4bfe685cc57e8994df237a16">kLPI2C_HostRequestPinActiveHigh</a> = 0x1U
<br />
 }<tr class="memdesc:ga78edbfb2d1e9213e7ebfabe32423f5d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C master host request pin polarity configuration.  <a href="group__lpi2c__master__driver.html#ga78edbfb2d1e9213e7ebfabe32423f5d2">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga78edbfb2d1e9213e7ebfabe32423f5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga28ac6ee1cc7991c2907abb18adbb1b31"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga28ac6ee1cc7991c2907abb18adbb1b31">lpi2c_data_match_config_mode_t</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31a00ef085f1047daf41240a7c9daa7aee5">kLPI2C_MatchDisabled</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31ae41fc9d1480c995ecab8be9afc489108">kLPI2C_1stWordEqualsM0OrM1</a> = 0x2U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31af994783c76b2008af82fa9209d1fb746">kLPI2C_AnyWordEqualsM0OrM1</a> = 0x3U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31a309463f537d290dc18770d4245e0046e">kLPI2C_1stWordEqualsM0And2ndWordEqualsM1</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31a747cdb86ebade4b5d09fc25a0f199aee">kLPI2C_AnyWordEqualsM0AndNextWordEqualsM1</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31a1b963126207a01049b68b0fd7645ff4a">kLPI2C_1stWordAndM1EqualsM0AndM1</a>, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga28ac6ee1cc7991c2907abb18adbb1b31a37e28fca69438b64be9ca862bade372b">kLPI2C_AnyWordAndM1EqualsM0AndM1</a>
<br />
 }<tr class="memdesc:ga28ac6ee1cc7991c2907abb18adbb1b31"><td class="mdescLeft">&#160;</td><td class="mdescRight">LPI2C master data match configuration modes.  <a href="group__lpi2c__master__driver.html#ga28ac6ee1cc7991c2907abb18adbb1b31">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga28ac6ee1cc7991c2907abb18adbb1b31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6d8e7ad8c6f187673a91247a23a52dc1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga6d8e7ad8c6f187673a91247a23a52dc1">_lpi2c_master_transfer_flags</a> { <br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga6d8e7ad8c6f187673a91247a23a52dc1a413ec0da1a0be18365a3ba1285fe78f4">kLPI2C_TransferDefaultFlag</a> = 0x00U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga6d8e7ad8c6f187673a91247a23a52dc1adc9924923c68af7960d4b8cf43e5609e">kLPI2C_TransferNoStartFlag</a> = 0x01U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga6d8e7ad8c6f187673a91247a23a52dc1a2d6fdbacf571dc6eea70ef0349c73ccb">kLPI2C_TransferRepeatedStartFlag</a> = 0x02U, 
<br />
&#160;&#160;<a class="el" href="group__lpi2c__master__driver.html#gga6d8e7ad8c6f187673a91247a23a52dc1a56c1abdffee0978f6d5aeedba30971c3">kLPI2C_TransferNoStopFlag</a> = 0x04U
<br />
 }<tr class="memdesc:ga6d8e7ad8c6f187673a91247a23a52dc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transfer option flags.  <a href="group__lpi2c__master__driver.html#ga6d8e7ad8c6f187673a91247a23a52dc1">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga6d8e7ad8c6f187673a91247a23a52dc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:gaf1753f02b6a39bb4391250c646236eae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gaf1753f02b6a39bb4391250c646236eae">LPI2C_MasterGetDefaultConfig</a> (<a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t">lpi2c_master_config_t</a> *masterConfig)</td></tr>
<tr class="memdesc:gaf1753f02b6a39bb4391250c646236eae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides a default configuration for the LPI2C master peripheral.  <a href="#gaf1753f02b6a39bb4391250c646236eae">More...</a><br /></td></tr>
<tr class="separator:gaf1753f02b6a39bb4391250c646236eae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga31c7e21bae74602cb831109e7de33ade"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga31c7e21bae74602cb831109e7de33ade">LPI2C_MasterInit</a> (LPI2C_Type *base, const <a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t">lpi2c_master_config_t</a> *masterConfig, uint32_t sourceClock_Hz)</td></tr>
<tr class="memdesc:ga31c7e21bae74602cb831109e7de33ade"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the LPI2C master peripheral.  <a href="#ga31c7e21bae74602cb831109e7de33ade">More...</a><br /></td></tr>
<tr class="separator:ga31c7e21bae74602cb831109e7de33ade"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e5ac26414d36018ac33f31332026b82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga1e5ac26414d36018ac33f31332026b82">LPI2C_MasterDeinit</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga1e5ac26414d36018ac33f31332026b82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the LPI2C master peripheral.  <a href="#ga1e5ac26414d36018ac33f31332026b82">More...</a><br /></td></tr>
<tr class="separator:ga1e5ac26414d36018ac33f31332026b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae258a7281c9afd04f3b0133430449404"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gae258a7281c9afd04f3b0133430449404">LPI2C_MasterConfigureDataMatch</a> (LPI2C_Type *base, const <a class="el" href="group__lpi2c__master__driver.html#structlpi2c__data__match__config__t">lpi2c_data_match_config_t</a> *config)</td></tr>
<tr class="memdesc:gae258a7281c9afd04f3b0133430449404"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure LPI2C master data match feature.  <a href="#gae258a7281c9afd04f3b0133430449404">More...</a><br /></td></tr>
<tr class="separator:gae258a7281c9afd04f3b0133430449404"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75ac46a8612bfb21b52699a3feb2cd03"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga75ac46a8612bfb21b52699a3feb2cd03">LPI2C_MasterReset</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga75ac46a8612bfb21b52699a3feb2cd03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform software reset.  <a href="#ga75ac46a8612bfb21b52699a3feb2cd03">More...</a><br /></td></tr>
<tr class="separator:ga75ac46a8612bfb21b52699a3feb2cd03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga46bd9c4d6579fa0273c3a1cc1c94b65a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga46bd9c4d6579fa0273c3a1cc1c94b65a">LPI2C_MasterEnable</a> (LPI2C_Type *base, bool enable)</td></tr>
<tr class="memdesc:ga46bd9c4d6579fa0273c3a1cc1c94b65a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the LPI2C module as master.  <a href="#ga46bd9c4d6579fa0273c3a1cc1c94b65a">More...</a><br /></td></tr>
<tr class="separator:ga46bd9c4d6579fa0273c3a1cc1c94b65a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status</h2></td></tr>
<tr class="memitem:ga02cab0c6281b9532bd6f8e2b04e5a2ba"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga02cab0c6281b9532bd6f8e2b04e5a2ba">LPI2C_MasterGetStatusFlags</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga02cab0c6281b9532bd6f8e2b04e5a2ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the LPI2C master status flags.  <a href="#ga02cab0c6281b9532bd6f8e2b04e5a2ba">More...</a><br /></td></tr>
<tr class="separator:ga02cab0c6281b9532bd6f8e2b04e5a2ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga27324dea42cdddefdfdf53a034118522"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga27324dea42cdddefdfdf53a034118522">LPI2C_MasterClearStatusFlags</a> (LPI2C_Type *base, uint32_t statusMask)</td></tr>
<tr class="memdesc:ga27324dea42cdddefdfdf53a034118522"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the LPI2C master status flag state.  <a href="#ga27324dea42cdddefdfdf53a034118522">More...</a><br /></td></tr>
<tr class="separator:ga27324dea42cdddefdfdf53a034118522"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupts</h2></td></tr>
<tr class="memitem:ga41f9e18b131a5a3ed0f0573c468c3123"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga41f9e18b131a5a3ed0f0573c468c3123">LPI2C_MasterEnableInterrupts</a> (LPI2C_Type *base, uint32_t interruptMask)</td></tr>
<tr class="memdesc:ga41f9e18b131a5a3ed0f0573c468c3123"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable LPI2C master interrupt requests.  <a href="#ga41f9e18b131a5a3ed0f0573c468c3123">More...</a><br /></td></tr>
<tr class="separator:ga41f9e18b131a5a3ed0f0573c468c3123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga50ab891c01b147071d465138b144fce7"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga50ab891c01b147071d465138b144fce7">LPI2C_MasterDisableInterrupts</a> (LPI2C_Type *base, uint32_t interruptMask)</td></tr>
<tr class="memdesc:ga50ab891c01b147071d465138b144fce7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable LPI2C master interrupt requests.  <a href="#ga50ab891c01b147071d465138b144fce7">More...</a><br /></td></tr>
<tr class="separator:ga50ab891c01b147071d465138b144fce7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8894194d00537fa3a5bae2b88910790c"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga8894194d00537fa3a5bae2b88910790c">LPI2C_MasterGetEnabledInterrupts</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga8894194d00537fa3a5bae2b88910790c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the set of currently enabled LPI2C master interrupt requests.  <a href="#ga8894194d00537fa3a5bae2b88910790c">More...</a><br /></td></tr>
<tr class="separator:ga8894194d00537fa3a5bae2b88910790c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
DMA control</h2></td></tr>
<tr class="memitem:ga682c0d77de6725eb842b8bf26d70ef6e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga682c0d77de6725eb842b8bf26d70ef6e">LPI2C_MasterEnableDMA</a> (LPI2C_Type *base, bool enableTx, bool enableRx)</td></tr>
<tr class="memdesc:ga682c0d77de6725eb842b8bf26d70ef6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables LPI2C master DMA requests.  <a href="#ga682c0d77de6725eb842b8bf26d70ef6e">More...</a><br /></td></tr>
<tr class="separator:ga682c0d77de6725eb842b8bf26d70ef6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5350c8b782a982c3a2a7103a32a55569"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga5350c8b782a982c3a2a7103a32a55569">LPI2C_MasterGetTxFifoAddress</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga5350c8b782a982c3a2a7103a32a55569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets LPI2C master transmit data register address for DMA transfer.  <a href="#ga5350c8b782a982c3a2a7103a32a55569">More...</a><br /></td></tr>
<tr class="separator:ga5350c8b782a982c3a2a7103a32a55569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga84da0ad9e383e1b06ddfce53a52f2777"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga84da0ad9e383e1b06ddfce53a52f2777">LPI2C_MasterGetRxFifoAddress</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga84da0ad9e383e1b06ddfce53a52f2777"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets LPI2C master receive data register address for DMA transfer.  <a href="#ga84da0ad9e383e1b06ddfce53a52f2777">More...</a><br /></td></tr>
<tr class="separator:ga84da0ad9e383e1b06ddfce53a52f2777"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
FIFO control</h2></td></tr>
<tr class="memitem:gaf0eb7016afbb3ab6bf8d624dbc95347d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gaf0eb7016afbb3ab6bf8d624dbc95347d">LPI2C_MasterSetWatermarks</a> (LPI2C_Type *base, size_t txWords, size_t rxWords)</td></tr>
<tr class="memdesc:gaf0eb7016afbb3ab6bf8d624dbc95347d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the watermarks for LPI2C master FIFOs.  <a href="#gaf0eb7016afbb3ab6bf8d624dbc95347d">More...</a><br /></td></tr>
<tr class="separator:gaf0eb7016afbb3ab6bf8d624dbc95347d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga485117a5769985079d759dbf083450fd"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga485117a5769985079d759dbf083450fd">LPI2C_MasterGetFifoCounts</a> (LPI2C_Type *base, size_t *rxCount, size_t *txCount)</td></tr>
<tr class="memdesc:ga485117a5769985079d759dbf083450fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current number of words in the LPI2C master FIFOs.  <a href="#ga485117a5769985079d759dbf083450fd">More...</a><br /></td></tr>
<tr class="separator:ga485117a5769985079d759dbf083450fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Bus operations</h2></td></tr>
<tr class="memitem:ga7f9f7d0d1c86fb7ee26d84dba706bc9a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga7f9f7d0d1c86fb7ee26d84dba706bc9a">LPI2C_MasterSetBaudRate</a> (LPI2C_Type *base, uint32_t sourceClock_Hz, uint32_t baudRate_Hz)</td></tr>
<tr class="memdesc:ga7f9f7d0d1c86fb7ee26d84dba706bc9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the I2C bus frequency for master transactions.  <a href="#ga7f9f7d0d1c86fb7ee26d84dba706bc9a">More...</a><br /></td></tr>
<tr class="separator:ga7f9f7d0d1c86fb7ee26d84dba706bc9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b26965efb8b28aeedaf4d8e4491fb50"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga5b26965efb8b28aeedaf4d8e4491fb50">LPI2C_MasterGetBusIdleState</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga5b26965efb8b28aeedaf4d8e4491fb50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return whether the bus is idle.  <a href="#ga5b26965efb8b28aeedaf4d8e4491fb50">More...</a><br /></td></tr>
<tr class="separator:ga5b26965efb8b28aeedaf4d8e4491fb50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5ec3758566b673bdec4f7030395b863"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gad5ec3758566b673bdec4f7030395b863">LPI2C_MasterStart</a> (LPI2C_Type *base, uint8_t address, <a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a> dir)</td></tr>
<tr class="memdesc:gad5ec3758566b673bdec4f7030395b863"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a START signal and slave address on the I2C bus.  <a href="#gad5ec3758566b673bdec4f7030395b863">More...</a><br /></td></tr>
<tr class="separator:gad5ec3758566b673bdec4f7030395b863"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacd57806adaf72ea3c3506414c3984f84"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gacd57806adaf72ea3c3506414c3984f84">LPI2C_MasterRepeatedStart</a> (LPI2C_Type *base, uint8_t address, <a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a> dir)</td></tr>
<tr class="memdesc:gacd57806adaf72ea3c3506414c3984f84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a repeated START signal and slave address on the I2C bus.  <a href="#gacd57806adaf72ea3c3506414c3984f84">More...</a><br /></td></tr>
<tr class="separator:gacd57806adaf72ea3c3506414c3984f84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5a6e1ac09452fc5182b0fd3a0da1d9b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga5a6e1ac09452fc5182b0fd3a0da1d9b3">LPI2C_MasterSend</a> (LPI2C_Type *base, const void *txBuff, size_t txSize)</td></tr>
<tr class="memdesc:ga5a6e1ac09452fc5182b0fd3a0da1d9b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a polling send transfer on the I2C bus.  <a href="#ga5a6e1ac09452fc5182b0fd3a0da1d9b3">More...</a><br /></td></tr>
<tr class="separator:ga5a6e1ac09452fc5182b0fd3a0da1d9b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a80cb5c1ccdbac0c753f86e8dd4d00d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga6a80cb5c1ccdbac0c753f86e8dd4d00d">LPI2C_MasterReceive</a> (LPI2C_Type *base, void *rxBuff, size_t rxSize)</td></tr>
<tr class="memdesc:ga6a80cb5c1ccdbac0c753f86e8dd4d00d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a polling receive transfer on the I2C bus.  <a href="#ga6a80cb5c1ccdbac0c753f86e8dd4d00d">More...</a><br /></td></tr>
<tr class="separator:ga6a80cb5c1ccdbac0c753f86e8dd4d00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63d65ab0751f91adecb03944b117f3df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga63d65ab0751f91adecb03944b117f3df">LPI2C_MasterStop</a> (LPI2C_Type *base)</td></tr>
<tr class="memdesc:ga63d65ab0751f91adecb03944b117f3df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a STOP signal on the I2C bus.  <a href="#ga63d65ab0751f91adecb03944b117f3df">More...</a><br /></td></tr>
<tr class="separator:ga63d65ab0751f91adecb03944b117f3df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Non-blocking</h2></td></tr>
<tr class="memitem:ga2f097403040b7db23a958c4660004d98"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga2f097403040b7db23a958c4660004d98">LPI2C_MasterCreateHandle</a> (LPI2C_Type *base, lpi2c_master_handle_t *handle, <a class="el" href="group__lpi2c__master__driver.html#gac848c547c21a9929224af938c57bdc2e">lpi2c_master_transfer_callback_t</a> callback, void *userData)</td></tr>
<tr class="memdesc:ga2f097403040b7db23a958c4660004d98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new handle for the LPI2C master non-blocking APIs.  <a href="#ga2f097403040b7db23a958c4660004d98">More...</a><br /></td></tr>
<tr class="separator:ga2f097403040b7db23a958c4660004d98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b0c04b87bd15fcaeac176993969bc29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga2b0c04b87bd15fcaeac176993969bc29">LPI2C_MasterTransferNonBlocking</a> (LPI2C_Type *base, lpi2c_master_handle_t *handle, lpi2c_master_transfer_t *transfer)</td></tr>
<tr class="memdesc:ga2b0c04b87bd15fcaeac176993969bc29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a non-blocking transaction on the I2C bus.  <a href="#ga2b0c04b87bd15fcaeac176993969bc29">More...</a><br /></td></tr>
<tr class="separator:ga2b0c04b87bd15fcaeac176993969bc29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga231f9a10aae9d03d7d2185e2fe8e8bf7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#ga231f9a10aae9d03d7d2185e2fe8e8bf7">LPI2C_MasterGetTransferCount</a> (LPI2C_Type *base, lpi2c_master_handle_t *handle, size_t *count)</td></tr>
<tr class="memdesc:ga231f9a10aae9d03d7d2185e2fe8e8bf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of bytes transferred so far.  <a href="#ga231f9a10aae9d03d7d2185e2fe8e8bf7">More...</a><br /></td></tr>
<tr class="separator:ga231f9a10aae9d03d7d2185e2fe8e8bf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabcfefd3c2ba36ea55fe4363844f4b5e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gabcfefd3c2ba36ea55fe4363844f4b5e5">LPI2C_MasterAbortTransfer</a> (LPI2C_Type *base, lpi2c_master_handle_t *handle)</td></tr>
<tr class="memdesc:gabcfefd3c2ba36ea55fe4363844f4b5e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates a non-blocking LPI2C master transmission early.  <a href="#gabcfefd3c2ba36ea55fe4363844f4b5e5">More...</a><br /></td></tr>
<tr class="separator:gabcfefd3c2ba36ea55fe4363844f4b5e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
IRQ handler</h2></td></tr>
<tr class="memitem:gaee44171139cc29cd50a3df29ee534979"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lpi2c__master__driver.html#gaee44171139cc29cd50a3df29ee534979">LPI2C_MasterHandleInterrupt</a> (LPI2C_Type *base, lpi2c_master_handle_t *handle)</td></tr>
<tr class="memdesc:gaee44171139cc29cd50a3df29ee534979"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reusable routine to handle master interrupts.  <a href="#gaee44171139cc29cd50a3df29ee534979">More...</a><br /></td></tr>
<tr class="separator:gaee44171139cc29cd50a3df29ee534979"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structlpi2c__master__config__t" id="structlpi2c__master__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct lpi2c_master_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Structure with settings to initialize the LPI2C master module. </p>
<p>This structure holds configuration settings for the LPI2C peripheral. To initialize this structure to reasonable defaults, call the <a class="el" href="group__lpi2c__master__driver.html#gaf1753f02b6a39bb4391250c646236eae" title="Provides a default configuration for the LPI2C master peripheral. ">LPI2C_MasterGetDefaultConfig()</a> function and pass a pointer to your config struct instance.</p>
<p>The config struct can be made const so it resides in flash. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a641b4c5a540819b16faf80c811ac06af"></a>uint32_t</td>
<td class="fieldname">
baudRate_Hz</td>
<td class="fielddoc">
<p>Desired baud rate in Hertz. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a961dbf85b56b5bf19ba9cafcba0df58d"></a>uint32_t</td>
<td class="fieldname">
busIdleTimeout_ns</td>
<td class="fielddoc">
<p>Bus idle timeout in nanoseconds. Set to 0 to disable. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aeb6e12d340808e4933c3abd23693d8c3"></a>bool</td>
<td class="fieldname">
debugEnable</td>
<td class="fielddoc">
<p>Enable transfers to continue when halted in debug mode. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="adc33c54dc06ce1822fe921591e5b4d8a"></a>bool</td>
<td class="fieldname">
enableDoze</td>
<td class="fielddoc">
<p>Whether master is enabled in doze mode. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab8b96ba3ced8b280ac1f366f6e76a9e7"></a>bool</td>
<td class="fieldname">
enableMaster</td>
<td class="fielddoc">
<p>Whether to enable master mode. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa7687110e4aa454048405f4a97d5308b"></a>struct <a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t_8host_request">lpi2c_master_config_t</a></td>
<td class="fieldname">
hostRequest</td>
<td class="fielddoc">
<p>Host request options. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a0c9caf9d8740154459a3cdff687e8d3c"></a>bool</td>
<td class="fieldname">
ignoreAck</td>
<td class="fielddoc">
<p>Whether to ignore ack/nack. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ad7bda7c48ed142e29bdd31a35248e33f"></a><a class="el" href="group__lpi2c__master__driver.html#ga07db39ec1d066e1427d7e58a52c7ea12">lpi2c_master_pin_config_t</a></td>
<td class="fieldname">
pinConfig</td>
<td class="fielddoc">
<p>The pin configuration option. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a33ce3a40b430de3ff3f749ea579a52a9"></a>uint32_t</td>
<td class="fieldname">
pinLowTimeout_ns</td>
<td class="fielddoc">
<p>Pin low timeout in nanoseconds. Set to 0 to disable. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ae2137ef7d80c5a9e3de80542f85db11d"></a>uint8_t</td>
<td class="fieldname">
sclGlitchFilterWidth_ns</td>
<td class="fielddoc">
<p>Width in nanoseconds of glitch filter on SCL pin. Set to 0 to disable. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a46240a7c670a6ad0665c437bbe89d4a3"></a>uint8_t</td>
<td class="fieldname">
sdaGlitchFilterWidth_ns</td>
<td class="fielddoc">
<p>Width in nanoseconds of glitch filter on SDA pin. Set to 0 to disable. </p>
</td></tr>
</table>

</div>
</div>
<a name="structlpi2c__master__config__t_8host_request" id="structlpi2c__master__config__t_8host_request"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct lpi2c_master_config_t.hostRequest</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"></div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a208f156d4a803025c284bb595a7576b4"></a>bool</td>
<td class="fieldname">
enable</td>
<td class="fielddoc">
<p>Enable host request. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="abf26cfe05f05fa0ee79497b6441582b9"></a><a class="el" href="group__lpi2c__master__driver.html#ga78edbfb2d1e9213e7ebfabe32423f5d2">lpi2c_host_request_polarity_t</a></td>
<td class="fieldname">
polarity</td>
<td class="fielddoc">
<p>Host request pin polarity. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a36cd38f49b9afa08222c0dc9ebfe35eb"></a><a class="el" href="group__lpi2c__master__driver.html#gac9a07c4c7370019ccabc914bd26ea1c8">lpi2c_host_request_source_t</a></td>
<td class="fieldname">
source</td>
<td class="fielddoc">
<p>Host request source. </p>
</td></tr>
</table>

</div>
</div>
<a name="structlpi2c__data__match__config__t" id="structlpi2c__data__match__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct lpi2c_data_match_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>LPI2C master data match config struct. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aa030e77206dc6105fc07b15a5fee926f"></a>uint32_t</td>
<td class="fieldname">
match0</td>
<td class="fielddoc">
<p>Match value 0. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a9ba32b2ddf6b2388ac4b99031ed54354"></a>uint32_t</td>
<td class="fieldname">
match1</td>
<td class="fielddoc">
<p>Match value 1. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ad70b1ba40d25fd8bc0d2674476ec5c91"></a><a class="el" href="group__lpi2c__master__driver.html#ga28ac6ee1cc7991c2907abb18adbb1b31">lpi2c_data_match_config_mode_t</a></td>
<td class="fieldname">
matchMode</td>
<td class="fielddoc">
<p>Data match configuration setting. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aea5fb485eeecf79a51312f36205b4b08"></a>bool</td>
<td class="fieldname">
rxDataMatchOnly</td>
<td class="fielddoc">
<p>When set to true, received data is ignored until a successful match. </p>
</td></tr>
</table>

</div>
</div>
<a name="struct__lpi2c__master__transfer" id="struct__lpi2c__master__transfer"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _lpi2c_master_transfer</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Non-blocking transfer descriptor structure. </p>
<p>This structure is used to pass transaction parameters to the <a class="el" href="group__lpi2c__master__driver.html#ga2b0c04b87bd15fcaeac176993969bc29" title="Performs a non-blocking transaction on the I2C bus. ">LPI2C_MasterTransferNonBlocking()</a> API. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a735984d41155bc1032e09bece8f8d66d"></a>void *</td>
<td class="fieldname">
data</td>
<td class="fielddoc">
<p>Pointer to data to transfer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a78f9703861dd365a513c2c5aab9f9239"></a>size_t</td>
<td class="fieldname">
dataSize</td>
<td class="fielddoc">
<p>Number of bytes to transfer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="af44b4d270443cdc17ab6b163a3b89999"></a><a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a></td>
<td class="fieldname">
direction</td>
<td class="fielddoc">
<p>Either <a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca50ba3a53d79baed347bb8fa07d7884ab">kLPI2C_Read</a> or <a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca4a913c200cf54c773380ea8271e7b42b">kLPI2C_Write</a>. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a773b39d480759f67926cb18ae2219281"></a>uint32_t</td>
<td class="fieldname">
flags</td>
<td class="fielddoc">
<p>Bit mask of options for the transfer. See enum <a class="el" href="group__lpi2c__master__driver.html#ga6d8e7ad8c6f187673a91247a23a52dc1" title="Transfer option flags. ">_lpi2c_master_transfer_flags</a> for available options. Set to 0 or <a class="el" href="group__lpi2c__master__driver.html#gga6d8e7ad8c6f187673a91247a23a52dc1a413ec0da1a0be18365a3ba1285fe78f4">kLPI2C_TransferDefaultFlag</a> for normal transfers. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a67af74c3fc959654c6dc8bcff3a2ea80"></a>uint16_t</td>
<td class="fieldname">
slaveAddress</td>
<td class="fielddoc">
<p>The 7-bit slave address. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a6fbfb5e5018422a177a9f3ed7269b127"></a>uint32_t</td>
<td class="fieldname">
subaddress</td>
<td class="fielddoc">
<p>Subaddress. Transferred MSB first. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aaaef09a4b58df0f2e4f9df16e63bd305"></a>size_t</td>
<td class="fieldname">
subaddressSize</td>
<td class="fielddoc">
<p>Length of subaddress to send in bytes. Maximum size is 4 bytes. </p>
</td></tr>
</table>

</div>
</div>
<a name="struct__lpi2c__master__handle" id="struct__lpi2c__master__handle"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _lpi2c_master_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>Driver handle for master non-blocking APIs. </p>
<dl class="section note"><dt>Note</dt><dd>The contents of this structure are private and subject to change. </dd></dl>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2c5f4ef732286b78e31ec8d1cb238215"></a>uint8_t *</td>
<td class="fieldname">
buf</td>
<td class="fielddoc">
<p>Buffer pointer for current state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a604532d53d990d7bf4ed16f51edb1cad"></a>uint16_t</td>
<td class="fieldname">
commandBuffer[7]</td>
<td class="fielddoc">
<p>LPI2C command sequence. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a901a46c284a787e7871e147806f7776a"></a><a class="el" href="group__lpi2c__master__driver.html#gac848c547c21a9929224af938c57bdc2e">lpi2c_master_transfer_callback_t</a></td>
<td class="fieldname">
completionCallback</td>
<td class="fielddoc">
<p>Callback function pointer. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac76c70a094e7bb19294fe4b0a942d4e5"></a>uint16_t</td>
<td class="fieldname">
remainingBytes</td>
<td class="fielddoc">
<p>Remaining byte count in current state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a0b57aa10271a66f3dc936bba1d2f3830"></a>uint8_t</td>
<td class="fieldname">
state</td>
<td class="fielddoc">
<p>Transfer state machine current state. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac4d8307bc87763e50d8d5012fa20c85d"></a>lpi2c_master_transfer_t</td>
<td class="fieldname">
transfer</td>
<td class="fielddoc">
<p>Copy of the current transfer info. </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a2e294dd14122c554baa0665072b4ca7a"></a>void *</td>
<td class="fieldname">
userData</td>
<td class="fielddoc">
<p>Application data passed to callback. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gac848c547c21a9929224af938c57bdc2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* lpi2c_master_transfer_callback_t) (LPI2C_Type *base, lpi2c_master_handle_t *handle, <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> completionStatus, void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Master completion callback function pointer type. </p>
<p>This callback is used only for the non-blocking master transfer API. Specify the callback you wish to use in the call to <a class="el" href="group__lpi2c__master__driver.html#ga2f097403040b7db23a958c4660004d98" title="Create a new handle for the LPI2C master non-blocking APIs. ">LPI2C_MasterCreateHandle()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">completionStatus</td><td>Either #kStatus_Success or an error code describing how the transfer completed. </td></tr>
    <tr><td class="paramname">userData</td><td>Arbitrary pointer-sized value passed from the application. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga830bba7ea584a7f98d3fb6afd946d739"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739">_lpi2c_master_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPI2C master peripheral flags. </p>
<p>The following status register flags can be cleared:</p><ul>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739adf431b1a9475437d7089df5abcea7122">kLPI2C_MasterEndOfPacketFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aad8d90df6216a4d27680fd530c42710d">kLPI2C_MasterStopDetectFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a3ea7b4560b395c82e5293678228fff81">kLPI2C_MasterNackDetectFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a9e012e945342b8f0333e59060affb0b1">kLPI2C_MasterArbitrationLostFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aac4e2ec9c92ea22b5246bb62000f93a9">kLPI2C_MasterFifoErrFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a37ceb9a9bdaa1ec7261d7265a51a5f17">kLPI2C_MasterPinLowTimeoutFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aaaad4c02a63dcf7d021baa5c4a9dcf2e">kLPI2C_MasterDataMatchFlag</a></li>
</ul>
<p>All flags except <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739ac1de9e29d8ffe76b10b8425f81db1368">kLPI2C_MasterBusyFlag</a> and <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a408ed7773539a17625803f6c9d3a6629">kLPI2C_MasterBusBusyFlag</a> can be enabled as interrupts.</p>
<dl class="section note"><dt>Note</dt><dd>These enums are meant to be OR'd together to form a bit mask. </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739af3208f156244a4b1c520db35b147ee33"></a>kLPI2C_MasterTxReadyFlag&#160;</td><td class="fielddoc">
<p>Transmit data flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739ae09650509ffef3de4ede348c4ac66be5"></a>kLPI2C_MasterRxReadyFlag&#160;</td><td class="fielddoc">
<p>Receive data flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739adf431b1a9475437d7089df5abcea7122"></a>kLPI2C_MasterEndOfPacketFlag&#160;</td><td class="fielddoc">
<p>End Packet flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739aad8d90df6216a4d27680fd530c42710d"></a>kLPI2C_MasterStopDetectFlag&#160;</td><td class="fielddoc">
<p>Stop detect flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739a3ea7b4560b395c82e5293678228fff81"></a>kLPI2C_MasterNackDetectFlag&#160;</td><td class="fielddoc">
<p>NACK detect flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739a9e012e945342b8f0333e59060affb0b1"></a>kLPI2C_MasterArbitrationLostFlag&#160;</td><td class="fielddoc">
<p>Arbitration lost flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739aac4e2ec9c92ea22b5246bb62000f93a9"></a>kLPI2C_MasterFifoErrFlag&#160;</td><td class="fielddoc">
<p>FIFO error flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739a37ceb9a9bdaa1ec7261d7265a51a5f17"></a>kLPI2C_MasterPinLowTimeoutFlag&#160;</td><td class="fielddoc">
<p>Pin low timeout flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739aaaad4c02a63dcf7d021baa5c4a9dcf2e"></a>kLPI2C_MasterDataMatchFlag&#160;</td><td class="fielddoc">
<p>Data match flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739ac1de9e29d8ffe76b10b8425f81db1368"></a>kLPI2C_MasterBusyFlag&#160;</td><td class="fielddoc">
<p>Master busy flag </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga830bba7ea584a7f98d3fb6afd946d739a408ed7773539a17625803f6c9d3a6629"></a>kLPI2C_MasterBusBusyFlag&#160;</td><td class="fielddoc">
<p>Bus busy flag </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga6d8e7ad8c6f187673a91247a23a52dc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#ga6d8e7ad8c6f187673a91247a23a52dc1">_lpi2c_master_transfer_flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transfer option flags. </p>
<dl class="section note"><dt>Note</dt><dd>These enums are intended to be OR'd together to form a bit mask of options for the <a class="el" href="group__lpi2c__master__driver.html#a773b39d480759f67926cb18ae2219281">_lpi2c_master_transfer::flags</a> field. </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga6d8e7ad8c6f187673a91247a23a52dc1a413ec0da1a0be18365a3ba1285fe78f4"></a>kLPI2C_TransferDefaultFlag&#160;</td><td class="fielddoc">
<p>Transfer starts with a start signal, stops with a stop signal. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga6d8e7ad8c6f187673a91247a23a52dc1adc9924923c68af7960d4b8cf43e5609e"></a>kLPI2C_TransferNoStartFlag&#160;</td><td class="fielddoc">
<p>Don't send a start condition, address, and subaddress </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga6d8e7ad8c6f187673a91247a23a52dc1a2d6fdbacf571dc6eea70ef0349c73ccb"></a>kLPI2C_TransferRepeatedStartFlag&#160;</td><td class="fielddoc">
<p>Send a repeated start condition </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga6d8e7ad8c6f187673a91247a23a52dc1a56c1abdffee0978f6d5aeedba30971c3"></a>kLPI2C_TransferNoStopFlag&#160;</td><td class="fielddoc">
<p>Don't send a stop condition. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga28ac6ee1cc7991c2907abb18adbb1b31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#ga28ac6ee1cc7991c2907abb18adbb1b31">lpi2c_data_match_config_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPI2C master data match configuration modes. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31a00ef085f1047daf41240a7c9daa7aee5"></a>kLPI2C_MatchDisabled&#160;</td><td class="fielddoc">
<p>LPI2C Match Disabled </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31ae41fc9d1480c995ecab8be9afc489108"></a>kLPI2C_1stWordEqualsM0OrM1&#160;</td><td class="fielddoc">
<p>LPI2C Match Enabled and 1st data word equals MATCH0 OR MATCH1 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31af994783c76b2008af82fa9209d1fb746"></a>kLPI2C_AnyWordEqualsM0OrM1&#160;</td><td class="fielddoc">
<p>LPI2C Match Enabled and any data word equals MATCH0 OR MATCH1 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31a309463f537d290dc18770d4245e0046e"></a>kLPI2C_1stWordEqualsM0And2ndWordEqualsM1&#160;</td><td class="fielddoc">
<p>LPI2C Match Enabled and 1st data word equals MATCH0, 2nd data equals MATCH1 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31a747cdb86ebade4b5d09fc25a0f199aee"></a>kLPI2C_AnyWordEqualsM0AndNextWordEqualsM1&#160;</td><td class="fielddoc">
<p>LPI2C Match Enabled and any data word equals MATCH0, next data equals MATCH1 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31a1b963126207a01049b68b0fd7645ff4a"></a>kLPI2C_1stWordAndM1EqualsM0AndM1&#160;</td><td class="fielddoc">
<p>LPI2C Match Enabled and 1st data word and MATCH0 equals MATCH0 and MATCH1 </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga28ac6ee1cc7991c2907abb18adbb1b31a37e28fca69438b64be9ca862bade372b"></a>kLPI2C_AnyWordAndM1EqualsM0AndM1&#160;</td><td class="fielddoc">
<p>LPI2C Match Enabled and any data word and MATCH0 equals MATCH0 and MATCH1 </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gaf7540e799ad5eb17c678b39ea1ace80c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Direction of master and slave transfers. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggaf7540e799ad5eb17c678b39ea1ace80ca4a913c200cf54c773380ea8271e7b42b"></a>kLPI2C_Write&#160;</td><td class="fielddoc">
<p>Master transmit. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaf7540e799ad5eb17c678b39ea1ace80ca50ba3a53d79baed347bb8fa07d7884ab"></a>kLPI2C_Read&#160;</td><td class="fielddoc">
<p>Master receive. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga78edbfb2d1e9213e7ebfabe32423f5d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#ga78edbfb2d1e9213e7ebfabe32423f5d2">lpi2c_host_request_polarity_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPI2C master host request pin polarity configuration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga78edbfb2d1e9213e7ebfabe32423f5d2aab540d2690ea7446d68f0106e46cfb36"></a>kLPI2C_HostRequestPinActiveLow&#160;</td><td class="fielddoc">
<p>Configure the LPI2C_HREQ pin active low </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga78edbfb2d1e9213e7ebfabe32423f5d2a1f72f10b4bfe685cc57e8994df237a16"></a>kLPI2C_HostRequestPinActiveHigh&#160;</td><td class="fielddoc">
<p>Configure the LPI2C_HREQ pin active high </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gac9a07c4c7370019ccabc914bd26ea1c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#gac9a07c4c7370019ccabc914bd26ea1c8">lpi2c_host_request_source_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPI2C master host request selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggac9a07c4c7370019ccabc914bd26ea1c8a4634268e7c377ffd2e7db9a93b2776eb"></a>kLPI2C_HostRequestExternalPin&#160;</td><td class="fielddoc">
<p>Select the LPI2C_HREQ pin as the host request input </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac9a07c4c7370019ccabc914bd26ea1c8a1a8773fbec157bc1a069826af08a2aae"></a>kLPI2C_HostRequestInputTrigger&#160;</td><td class="fielddoc">
<p>Select the input trigger as the host request input </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga07db39ec1d066e1427d7e58a52c7ea12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__lpi2c__master__driver.html#ga07db39ec1d066e1427d7e58a52c7ea12">lpi2c_master_pin_config_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>LPI2C pin configuration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12ada174b660785782567aee14c05918d89"></a>kLPI2C_2PinOpenDrain&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 2-pin open drain mode </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12a9a8053876d619b3beeb745b212b9a1fb"></a>kLPI2C_2PinOutputOnly&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 2-pin output only mode (ultra-fast mode) </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12a53f8d0708cfc2ea887abb2e2d440d29e"></a>kLPI2C_2PinPushPull&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 2-pin push-pull mode </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12a9642890d09eeb5ed0b8d9e59aac6e3b7"></a>kLPI2C_4PinPushPull&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 4-pin push-pull mode </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12ad809117a74ffea333e273e97dc93aff7"></a>kLPI2C_2PinOpenDrainWithSeparateSlave&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 2-pin open drain mode with separate LPI2C slave </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12a297f630d584519da05064b2962596ee5"></a>kLPI2C_2PinOutputOnlyWithSeparateSlave&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 2-pin output only mode(ultra-fast mode) with separate LPI2C slave </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12a5e8d93f3f8f55f5c9a47c7cddd4df495"></a>kLPI2C_2PinPushPullWithSeparateSlave&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 2-pin push-pull mode with separate LPI2C slave </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga07db39ec1d066e1427d7e58a52c7ea12acb4290916ade8b65741bc18d632acbd6"></a>kLPI2C_4PinPushPullWithInvertedOutput&#160;</td><td class="fielddoc">
<p>LPI2C Configured for 4-pin push-pull mode(inverted outputs) </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gabcfefd3c2ba36ea55fe4363844f4b5e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterAbortTransfer </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpi2c_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Terminates a non-blocking LPI2C master transmission early. </p>
<dl class="section note"><dt>Note</dt><dd>It is not safe to call this function from an IRQ handler that has a higher priority than the LPI2C peripheral's IRQ priority.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>Pointer to the LPI2C master driver handle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>A transaction was successfully aborted. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a6603ec1135f58532c9d4accc3661bc27">kStatus_LPI2C_Idle</a></td><td>There is not a non-blocking transaction currently in progress. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga27324dea42cdddefdfdf53a034118522"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterClearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>statusMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clears the LPI2C master status flag state. </p>
<p>The following status register flags can be cleared:</p><ul>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739adf431b1a9475437d7089df5abcea7122">kLPI2C_MasterEndOfPacketFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aad8d90df6216a4d27680fd530c42710d">kLPI2C_MasterStopDetectFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a3ea7b4560b395c82e5293678228fff81">kLPI2C_MasterNackDetectFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a9e012e945342b8f0333e59060affb0b1">kLPI2C_MasterArbitrationLostFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aac4e2ec9c92ea22b5246bb62000f93a9">kLPI2C_MasterFifoErrFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a37ceb9a9bdaa1ec7261d7265a51a5f17">kLPI2C_MasterPinLowTimeoutFlag</a></li>
<li><a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739aaaad4c02a63dcf7d021baa5c4a9dcf2e">kLPI2C_MasterDataMatchFlag</a></li>
</ul>
<p>Attempts to clear other flags will have no effect.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">statusMask</td><td>A bitmask of status flags that are to be cleared. The mask is composed of <a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739" title="LPI2C master peripheral flags. ">_lpi2c_master_flags</a> enumerators OR'd together. You may pass the result of a previous call to <a class="el" href="group__lpi2c__master__driver.html#ga02cab0c6281b9532bd6f8e2b04e5a2ba" title="Gets the LPI2C master status flags. ">LPI2C_MasterGetStatusFlags()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739" title="LPI2C master peripheral flags. ">_lpi2c_master_flags</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="gae258a7281c9afd04f3b0133430449404"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterConfigureDataMatch </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__lpi2c__master__driver.html#structlpi2c__data__match__config__t">lpi2c_data_match_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure LPI2C master data match feature. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">config</td><td>Settings for the data match feature. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2f097403040b7db23a958c4660004d98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterCreateHandle </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpi2c_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__lpi2c__master__driver.html#gac848c547c21a9929224af938c57bdc2e">lpi2c_master_transfer_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new handle for the LPI2C master non-blocking APIs. </p>
<p>The creation of a handle is for use with the non-blocking APIs. Once a handle is created, there is not a corresponding destroy handle. If the user wants to terminate a transfer, the <a class="el" href="group__lpi2c__master__driver.html#gabcfefd3c2ba36ea55fe4363844f4b5e5" title="Terminates a non-blocking LPI2C master transmission early. ">LPI2C_MasterAbortTransfer()</a> API shall be called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">handle</td><td>Pointer to the LPI2C master driver handle. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">callback</td><td>User provided pointer to the asynchronous callback function. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">userData</td><td>User provided pointer to the application callback data. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga1e5ac26414d36018ac33f31332026b82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterDeinit </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deinitializes the LPI2C master peripheral. </p>
<p>This function will disable the LPI2C master peripheral and gates the clock. It also performs a software reset to restore the peripheral to reset conditions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga50ab891c01b147071d465138b144fce7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterDisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interruptMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable LPI2C master interrupt requests. </p>
<p>All flags except <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739ac1de9e29d8ffe76b10b8425f81db1368">kLPI2C_MasterBusyFlag</a> and <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a408ed7773539a17625803f6c9d3a6629">kLPI2C_MasterBusBusyFlag</a> can be enabled as interrupts.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">interruptMask</td><td>Bit mask of interrupts to disable. See <a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739" title="LPI2C master peripheral flags. ">_lpi2c_master_flags</a> for the set of constants that should be OR'd together to form the bit mask. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga46bd9c4d6579fa0273c3a1cc1c94b65a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterEnable </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables the LPI2C module as master. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">enable</td><td>Pass true to enable or false to disable the specified LPI2C as master. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga682c0d77de6725eb842b8bf26d70ef6e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterEnableDMA </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enableRx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables or disables LPI2C master DMA requests. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">enableTx</td><td>Enable flag for transmit DMA request. Pass true for enable, false for disable. </td></tr>
    <tr><td class="paramname">enableRx</td><td>Enable flag for receive DMA request. Pass true for enable, false for disable. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga41f9e18b131a5a3ed0f0573c468c3123"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterEnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interruptMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable LPI2C master interrupt requests. </p>
<p>All flags except <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739ac1de9e29d8ffe76b10b8425f81db1368">kLPI2C_MasterBusyFlag</a> and <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739a408ed7773539a17625803f6c9d3a6629">kLPI2C_MasterBusBusyFlag</a> can be enabled as interrupts.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">interruptMask</td><td>Bit mask of interrupts to enable. See <a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739" title="LPI2C master peripheral flags. ">_lpi2c_master_flags</a> for the set of constants that should be OR'd together to form the bit mask. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga5b26965efb8b28aeedaf4d8e4491fb50"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool LPI2C_MasterGetBusIdleState </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return whether the bus is idle. </p>
<p>Requires the master mode to be enabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">true</td><td>Bus is busy. </td></tr>
    <tr><td class="paramname">false</td><td>Bus is idle. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf1753f02b6a39bb4391250c646236eae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterGetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t">lpi2c_master_config_t</a> *&#160;</td>
          <td class="paramname"><em>masterConfig</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides a default configuration for the LPI2C master peripheral. </p>
<p>This function will provide the following default configuration for the LPI2C master peripheral: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;masterConfig-&gt;enableMaster            = true;</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;masterConfig-&gt;debugEnable             = false;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;masterConfig-&gt;ignoreAck               = false;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;masterConfig-&gt;pinConfig               = kLPI2C_2PinOpenDrain;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;masterConfig-&gt;baudRate_Hz             = 100000U;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;masterConfig-&gt;busIdleTimeout_ns       = 0;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;masterConfig-&gt;pinLowTimeout_ns        = 0;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;masterConfig-&gt;sdaGlitchFilterWidth_ns = 0;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;masterConfig-&gt;sclGlitchFilterWidth_ns = 0;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;masterConfig-&gt;hostRequest.enable      = false;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;masterConfig-&gt;hostRequest.source      = kLPI2C_HostRequestExternalPin;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;masterConfig-&gt;hostRequest.polarity    = kLPI2C_HostRequestPinActiveHigh;</div></div><!-- fragment --><p>After calling this function, you can override any settings in order to customize the configuration, prior to initializing the master driver with <a class="el" href="group__lpi2c__master__driver.html#ga31c7e21bae74602cb831109e7de33ade" title="Initializes the LPI2C master peripheral. ">LPI2C_MasterInit()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">masterConfig</td><td>User provided configuration structure for default values. Refer to <a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t" title="Structure with settings to initialize the LPI2C master module. ">lpi2c_master_config_t</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8894194d00537fa3a5bae2b88910790c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t LPI2C_MasterGetEnabledInterrupts </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the set of currently enabled LPI2C master interrupt requests. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A bitmask composed of <a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739" title="LPI2C master peripheral flags. ">_lpi2c_master_flags</a> enumerators OR'd together to indicate the set of enabled interrupts. </dd></dl>

</div>
</div>
<a class="anchor" id="ga485117a5769985079d759dbf083450fd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterGetFifoCounts </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>rxCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>txCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the current number of words in the LPI2C master FIFOs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">txCount</td><td>Pointer through which the current number of words in the transmit FIFO will be returned. Pass NULL if this value is not required. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rxCount</td><td>Pointer through which the current number of words in the receive FIFO will be returned. Pass NULL if this value is not required. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga84da0ad9e383e1b06ddfce53a52f2777"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t LPI2C_MasterGetRxFifoAddress </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets LPI2C master receive data register address for DMA transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The LPI2C Master Receive Data Register address. </dd></dl>

</div>
</div>
<a class="anchor" id="ga02cab0c6281b9532bd6f8e2b04e5a2ba"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t LPI2C_MasterGetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the LPI2C master status flags. </p>
<p>A bit mask with the state of all LPI2C master status flags is returned. For each flag, the corresponding bit in the return value will be set if the flag is asserted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>State of the status flags:<ul>
<li>1: related status flag is set.</li>
<li>0: related status flag is not set. </li>
</ul>
</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__lpi2c__master__driver.html#ga830bba7ea584a7f98d3fb6afd946d739" title="LPI2C master peripheral flags. ">_lpi2c_master_flags</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga231f9a10aae9d03d7d2185e2fe8e8bf7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterGetTransferCount </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpi2c_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns number of bytes transferred so far. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">handle</td><td>Pointer to the LPI2C master driver handle. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">count</td><td>Number of bytes transferred so far by the non-blocking transaction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td></td></tr>
    <tr><td class="paramname">#kStatus_NoTransferInProgress</td><td>There is not a non-blocking transaction currently in progress. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga5350c8b782a982c3a2a7103a32a55569"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t LPI2C_MasterGetTxFifoAddress </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets LPI2C master transmit data register address for DMA transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The LPI2C Master Transmit Data Register address. </dd></dl>

</div>
</div>
<a class="anchor" id="gaee44171139cc29cd50a3df29ee534979"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterHandleInterrupt </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpi2c_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reusable routine to handle master interrupts. </p>
<dl class="section note"><dt>Note</dt><dd>This function does not need to be called unless you are reimplementing the nonblocking API's interrupt handler routines to add special functionality. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>Pointer to the LPI2C master driver handle. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga31c7e21bae74602cb831109e7de33ade"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterInit </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__lpi2c__master__driver.html#structlpi2c__master__config__t">lpi2c_master_config_t</a> *&#160;</td>
          <td class="paramname"><em>masterConfig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>sourceClock_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the LPI2C master peripheral. </p>
<p>This function enables the peripheral clock and initializes the LPI2C master peripheral as described by the user provided configuration. A software reset is performed prior to configuration.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">masterConfig</td><td>User provided peripheral configuration. Use <a class="el" href="group__lpi2c__master__driver.html#gaf1753f02b6a39bb4391250c646236eae" title="Provides a default configuration for the LPI2C master peripheral. ">LPI2C_MasterGetDefaultConfig()</a> to get a set of defaults that you can override. </td></tr>
    <tr><td class="paramname">sourceClock_Hz</td><td>Frequency in Hertz of the LPI2C functional clock. Used to calculate the baud rate divisors, filter widths, and timeout periods. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6a80cb5c1ccdbac0c753f86e8dd4d00d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterReceive </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>rxBuff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>rxSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs a polling receive transfer on the I2C bus. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">rxBuff</td><td>The pointer to the data to be transferred. </td></tr>
    <tr><td class="paramname">rxSize</td><td>The length in bytes of the data to be transferred. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>Data was received successfully. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8af52a270e301641b8855edf3fcc843814">kStatus_LPI2C_Busy</a></td><td>Another master is currently utilizing the bus. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a75dbc01ed590c24e787fadb97ba2f684">kStatus_LPI2C_Nak</a></td><td>The slave device sent a NAK in response to a byte. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a5b3634e1fedb0ad8cc38476aac29477e">kStatus_LPI2C_FifoError</a></td><td>Fifo underrun or overrun. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a5169d7e655df8bde3b4fc6d49ae8777a">kStatus_LPI2C_ArbitrationLost</a></td><td>Arbitration lost error. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8aa8c558fc024cbde751d7861ea6efca78">kStatus_LPI2C_PinLowTimeout</a></td><td>SCL or SDA were held low longer than the timeout. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gacd57806adaf72ea3c3506414c3984f84"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterRepeatedStart </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a>&#160;</td>
          <td class="paramname"><em>dir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sends a repeated START signal and slave address on the I2C bus. </p>
<p>This function is used to send a Repeated START signal when a transfer is already in progress. Like <a class="el" href="group__lpi2c__master__driver.html#gad5ec3758566b673bdec4f7030395b863" title="Sends a START signal and slave address on the I2C bus. ">LPI2C_MasterStart()</a>, it also sends the specified 7-bit address.</p>
<dl class="section note"><dt>Note</dt><dd>This function exists primarily to maintain compatible APIs between LPI2C and I2C drivers, as well as to better document the intent of code that uses these APIs.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">address</td><td>7-bit slave device address, in bits [6:0]. </td></tr>
    <tr><td class="paramname">dir</td><td>Master transfer direction, either <a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca50ba3a53d79baed347bb8fa07d7884ab">kLPI2C_Read</a> or <a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca4a913c200cf54c773380ea8271e7b42b">kLPI2C_Write</a>. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>Repeated START signal and address were successfully enqueued in the transmit FIFO. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8af52a270e301641b8855edf3fcc843814">kStatus_LPI2C_Busy</a></td><td>Another master is currently utilizing the bus. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga75ac46a8612bfb21b52699a3feb2cd03"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterReset </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Perform software reset. </p>
<p>Restores the LPI2C master peripheral to reset conditions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga5a6e1ac09452fc5182b0fd3a0da1d9b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterSend </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>txBuff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>txSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs a polling send transfer on the I2C bus. </p>
<p>Sends up to <em>txSize</em> number of bytes to the previously addressed slave device. The slave may reply with a NAK to any byte in order to terminate the transfer early. If this happens, this function will return <a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a75dbc01ed590c24e787fadb97ba2f684">kStatus_LPI2C_Nak</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">txBuff</td><td>The pointer to the data to be transferred. </td></tr>
    <tr><td class="paramname">txSize</td><td>The length in bytes of the data to be transferred. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>Data was sent successfully. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8af52a270e301641b8855edf3fcc843814">kStatus_LPI2C_Busy</a></td><td>Another master is currently utilizing the bus. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a75dbc01ed590c24e787fadb97ba2f684">kStatus_LPI2C_Nak</a></td><td>The slave device sent a NAK in response to a byte. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a5b3634e1fedb0ad8cc38476aac29477e">kStatus_LPI2C_FifoError</a></td><td>Fifo underrun or overrun. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a5169d7e655df8bde3b4fc6d49ae8777a">kStatus_LPI2C_ArbitrationLost</a></td><td>Arbitration lost error. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8aa8c558fc024cbde751d7861ea6efca78">kStatus_LPI2C_PinLowTimeout</a></td><td>SCL or SDA were held low longer than the timeout. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7f9f7d0d1c86fb7ee26d84dba706bc9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LPI2C_MasterSetBaudRate </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>sourceClock_Hz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>baudRate_Hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the I2C bus frequency for master transactions. </p>
<p>The LPI2C master is automatically disabled and re-enabled as necessary to configure the baud rate. Do not call this function during a transfer, or the transfer will be aborted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">sourceClock_Hz</td><td>LPI2C functional clock frequency in Hertz. </td></tr>
    <tr><td class="paramname">baudRate_Hz</td><td>Requested bus frequency in Hertz. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf0eb7016afbb3ab6bf8d624dbc95347d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void LPI2C_MasterSetWatermarks </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>txWords</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>rxWords</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the watermarks for LPI2C master FIFOs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">txWords</td><td>Transmit FIFO watermark value in words. The <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739af3208f156244a4b1c520db35b147ee33">kLPI2C_MasterTxReadyFlag</a> flag is set whenever the number of words in the transmit FIFO is equal or less than <em>txWords</em>. Writing a value equal or greater than the FIFO size will be truncated. </td></tr>
    <tr><td class="paramname">rxWords</td><td>Receive FIFO watermark value in words. The <a class="el" href="group__lpi2c__master__driver.html#gga830bba7ea584a7f98d3fb6afd946d739ae09650509ffef3de4ede348c4ac66be5">kLPI2C_MasterRxReadyFlag</a> flag is set whenever the number of words in the receive FIFO is greater than <em>rxWords</em>. Writing a value equal or greater than the FIFO size will be truncated. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad5ec3758566b673bdec4f7030395b863"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterStart </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__lpi2c__master__driver.html#gaf7540e799ad5eb17c678b39ea1ace80c">lpi2c_direction_t</a>&#160;</td>
          <td class="paramname"><em>dir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends a START signal and slave address on the I2C bus. </p>
<p>This function is used to initiate a new master mode transfer. First, the bus state is checked to ensure that another master is not occupying the bus. Then a START signal is transmitted, followed by the 7-bit address specified in the <em>address</em> parameter. Note that this function does not actually wait until the START and address are successfully sent on the bus before returning.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">address</td><td>7-bit slave device address, in bits [6:0]. </td></tr>
    <tr><td class="paramname">dir</td><td>Master transfer direction, either <a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca50ba3a53d79baed347bb8fa07d7884ab">kLPI2C_Read</a> or <a class="el" href="group__lpi2c__master__driver.html#ggaf7540e799ad5eb17c678b39ea1ace80ca4a913c200cf54c773380ea8271e7b42b">kLPI2C_Write</a>. This parameter is used to set the R/w bit (bit 0) in the transmitted slave address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>START signal and address were successfully enqueued in the transmit FIFO. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8af52a270e301641b8855edf3fcc843814">kStatus_LPI2C_Busy</a></td><td>Another master is currently utilizing the bus. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga63d65ab0751f91adecb03944b117f3df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterStop </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends a STOP signal on the I2C bus. </p>
<p>This function does not return until the STOP signal is seen on the bus, or an error occurrs.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>The STOP signal was successfully sent on the bus and the transaction terminated. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8af52a270e301641b8855edf3fcc843814">kStatus_LPI2C_Busy</a></td><td>Another master is currently utilizing the bus. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a75dbc01ed590c24e787fadb97ba2f684">kStatus_LPI2C_Nak</a></td><td>The slave device sent a NAK in response to a byte. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a5b3634e1fedb0ad8cc38476aac29477e">kStatus_LPI2C_FifoError</a></td><td>Fifo underrun or overrun. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8a5169d7e655df8bde3b4fc6d49ae8777a">kStatus_LPI2C_ArbitrationLost</a></td><td>Arbitration lost error. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8aa8c558fc024cbde751d7861ea6efca78">kStatus_LPI2C_PinLowTimeout</a></td><td>SCL or SDA were held low longer than the timeout. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2b0c04b87bd15fcaeac176993969bc29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> LPI2C_MasterTransferNonBlocking </td>
          <td>(</td>
          <td class="paramtype">LPI2C_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpi2c_master_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lpi2c_master_transfer_t *&#160;</td>
          <td class="paramname"><em>transfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs a non-blocking transaction on the I2C bus. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The LPI2C peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>Pointer to the LPI2C master driver handle. </td></tr>
    <tr><td class="paramname">transfer</td><td>The pointer to the transfer descriptor. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">#kStatus_Success</td><td>The transaction was started successfully. </td></tr>
    <tr><td class="paramname"><a class="el" href="group__lpi2c__driver.html#gga424746e0c18108c3c7233c77899a57c8af52a270e301641b8855edf3fcc843814">kStatus_LPI2C_Busy</a></td><td>Either another master is currently utilizing the bus, or a non-blocking transaction is already in progress. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
